<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>我的问题_列表</title>
<style type="text/css">
<!--
body{
	margin-top: 5px;
	margin-right: 5px;
	line-height:20px;	
}

body,td,th {
	font-family: 宋体;
	font-size: 12px;
}
td {
	padding-left:10px;
	padding-right:10px;
	padding-top:2px;
	padding-bottom:2px;
	vertical-align:top;
}
.STYLE1 {
	font-size: 14px;
	font-weight: bold;
	color: #660066;
}
a:link {
	color: #333333;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
}
-->
</style>
</head>
<script type="text/javascript">
var content='';
function myClear(){
content=document.getElementById('reply_content').value;
document.getElementById('reply_content').value='';
}
function refill(){
document.getElementById('reply_content').value=content;
}
function reply_form(flag){
try{
document.getElementById('re_form_1').style.display=flag;
document.getElementById('re_form_2').style.display=flag;
document.getElementById('re_form_3').style.display=flag;
}catch(e){
}
}
function add_rp(obj){
	if(obj.checked==true) document.getElementById('add_rp').style.display='';
	else  document.getElementById('add_rp').style.display='none';
}
function set_yes_or_no(flag){
	if(flag) {
	document.getElementById('c_yes').checked=true;
	document.getElementById('c_no').checked=false;
	}else {
	document.getElementById('c_yes').checked=false;
	document.getElementById('c_no').checked=true;
	}
}

var spic_w_1=110;
var spic_h_1=90;
var spic_w_2=110;
var spic_h_2=90;
var spic_w_3=110;
var spic_h_3=90;

</script>

<body  onLoad="test()">
<table width="800" border="0" cellpadding="0" cellspacing="1" bgcolor="#999999"  >
	<tr>
		<td width="200" rowspan="2" bgcolor="#FFFFFF" style="padding-right:10px; padding-top:10px;" >
			
			
{{include file=$file_gm_info}}
			
			
			</td>
		<td valign="middle" bgcolor="#FFFFFF"  ><span class="STYLE1">单据处理</span> - <strong>GM回复</strong></td>
	</tr>
	<tr>
		<td height="400" valign="top" bgcolor="#FFFFFF" style=" padding-top:10px; padding-left:3px; padding-right:3px;">
		
		
		<input type="button" name="button" id="button" value="返回到列表页" onclick="history.back()" />
			<form action="" method="post" enctype="application/x-www-form-urlencoded" name="form" id="form">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td colspan="3">
						<p>所属游戏： <font color="#0000FF">{{$ques_info->game_name}} - {{$ques_info->server_name}}</font></p>
						<p>用户信息： <strong>{{$ques_info->ques_info.user_name}}</strong><br />
							问题类型： [ {{$ques_info->ques_info.class_0}} - {{$ques_info->ques_info.class_1}} ]				
							
							{{if $ques_info->ques_info.back_check eq 0}} <a href="javascript:;" onclick="window.open('open_edit_class.php?ques_id={{$ques_info->ques_info.id}}','edit_class','width=800,height=420')" style="text-decoration:underline; color:#0000FF;">重新归档</a>
							<span style="display:none" id='edit_class'>
								<font color="red"><br />
								被归档为： [ <span id='new_class_0'></span> - <span id='new_class_1'></span> ]</font> </span>
							{{/if}}							
							
							<br />
							当前状态： <font color="red">{{$ques_info->ques_info.replay_flag}}</font><br />
							提交时间： {{$ques_info->ques_info.ask_time}}<br />
							出现问题时间： {{$ques_info->ques_info.happen_time}}<br />
							受理时间： {{$ques_info->ques_info.back1_time}}<br />
							{{if $ques_info->ques_info.high_gm_back_time ne ''}}
							转单时间： {{$ques_info->ques_info.high_gm_back_time}}<br />
							{{/if}}
							<br />
							主题：<strong>{{$ques_info->ques_info.title}}</strong> <br />
							反馈内容：<br />
							<span style="word-break:break-all"><strong>{{$ques_info->ques_info.content|nl2br}}</strong><br />
								</span>
							<br />
							</p>
					</td>
				</tr>

{{section name=pic loop=$ques_info->ques_info.pic.count}}	
				<tr>
					<td colspan="3">图片{{$smarty.section.pic.index+1}}:<br />
						<a href="../pic.php?id={{$ques_info->ques_info.pic[$smarty.section.pic.index].id}}" target="_blank"><img src="../pic.php?id={{$ques_info->ques_info.pic[$smarty.section.pic.index].id}}" onMouseOver="this.width=spic_w_{{$smarty.section.pic.index+1}};this.height=spic_h_{{$smarty.section.pic.index+1}}"   onMouseOut="this.width=110;this.height=90" border="1" id='spic_{{$smarty.section.pic.index+1}}' /></a></td>
				</tr>
{{/section}}



				{{if $ques_info->ques_info.gm_explain ne ''}}
				<tr>
					<td colspan="3"><strong><span style="color:red;">普通GM {{$ques_info->gm_name}} 问题补充说明：</span></strong><br />
							{{$ques_info->ques_info.gm_explain|nl2br}}<br /><br />
					</td>
				</tr>
				{{/if}}
				
				{{if $ques_info->ques_info.high_gm_back ne ''}}
				<tr>
					<td colspan="3"><strong><span style="color:red;">高级GM &lt;{{$ques_info->high_gm_name}}&gt; 回复：</span></strong><br />
							<span style="font-weight:bold">{{$ques_info->ques_info.high_gm_back|nl2br}}</span><br /><br />
					</td>
				</tr>
				{{/if}}
				
				{{if $ques_info->ques_info.gm_back ne ''}}
				<tr>
					<td colspan="3"><strong><span style="color:red;">GM({{$ques_info->gm_name}})回复：</span></strong><br />
					<span style="font-weight:bold">{{$ques_info->ques_info.gm_back|nl2br}}</span><br />
{{if $ques_info->ques_info.gm_back_edit_time ne ''}}
					<span style="font-weight:normal; color:#999999;">{{$ques_info->ques_info.user_name}}修改于{{$ques_info->ques_info.gm_back_edit_time}}</span><br />
{{/if}}	
{{if $ques_info->ques_info.back_check eq 0 }}		
					<a href="javascript:;" onclick="reply_form('')" style="color:red; text-decoration:underline;">修改回复</a><br />
{{/if}}		
<br />			
</td>
				</tr>
				{{/if}}

{{if $ques_info->wait_high_gm_back eq 1}}
{{if $user->gm_level eq '普通GM'}}				
				<tr >
					<td colspan="3" style="color:red;">等待高级gm回复中..</td>
				</tr>
{{/if}}					
{{/if}}		

{{if $ques_info->wait_high_gm_back eq 1}}
{{if $user->gm_level eq '高级GM'}}
				<tr id="re_form_4" >
					<td colspan="3">
						<p><span style="color:red;">由 <strong>{{$ques_info->gm_name}}</strong> 转交给高级gm受理</span></p>
						<p><strong>高级GM 回复</strong>：<br />
							<textarea name="reply_content" id="reply_content" cols="60" rows="6" ></textarea>
							<br />
							<input type="submit" name="gm_reply" id="gm_reply" value="高级gm提交回复" />
							</p>
					</td>
				</tr>
{{/if}}				
{{/if}}

{{if $user->gm_level eq '普通GM' }}
{{if $ques_info->wait_high_gm_back ne 1}}
{{if $ques_info->ques_info.back_check eq 0 }}

				<tr id=re_form_1 >
					<td colspan="3"><strong>GM 回复</strong>：<br />
						<textarea name="reply_content" id="reply_content" cols="60" rows="6" onchange="javascript:content=this.value">{{$ques_info->ques_info.gm_back}}</textarea>
					</td>
				</tr>
				<tr id=re_form_2>
					<td width="5%">&nbsp;</td>
					<td width="45%">
						<input type="button" name="button2" id="button2" value="清空"  onclick="myClear()" />
						<input type="button" name="button5" id="button5" value="恢复" onclick='refill()' />
					</td>
					<td width="57%" align="left">
						<input type="button" name="button3" id="button3" value="自定义模板" />
					    <input type="submit" name="gm_reply" id="gm_reply" value="提交回复" />
					    <br />
						<br />
					</td>
				</tr>
{{/if}}					
{{if $ques_info->show_to_hign_gm eq 1}}
				<tr id="re_form_5">
					<td colspan="3" align="center">
						<input type="submit" name="to_high_gm" id="to_high_gm" value="转交高级GM处理" style="color:#FF0000" />
					</td>
				</tr>

{{/if}}
{{/if}}
{{/if}}



{{if $ques_info->ques_info.back_check eq 0 }}		
{{if $user->gm_level eq '质检GM' }}		
				<tr>
					<td colspan="3">
						质检：
							<hr size="1" noshade="noshade" />
						<input name="c_accept" type="checkbox" id="c_accept" value="1" />
是否确认（采纳）
<input name="c_add_rp" type="checkbox" id="c_add_rp" onclick="add_rp(this)" value="1" />
调整RP值 
<span style=" display:none" id=add_rp><a href="javascript:;"  title="鼠标移动减小" onmousemove="document.form.rp_num.value-=1;" ><strong>&lt;&lt;&lt;</strong></a> <strong> &nbsp;</strong><a href="javascript:;"  title="鼠标移动减小" onmousedown="document.form.rp_num.value-=1;" ><strong>&lt;&lt;</strong></a>
<input name="rp_num" type="text" id="rp_num" value="+10" size="4" maxlength="4" style="width:30px; height:13px;" title="输入负数减RP值" /> 
<a href="javascript:;"  title="鼠标移动减小" onmousedown="document.form.rp_num.value-=1;" ><strong>&gt;&gt;</strong></a><strong>&nbsp; </strong> <a href="javascript:;" title="鼠标移动减小"  onmousemove="document.form.rp_num.value-=-1" ><strong>&gt;&gt;&gt; </strong></a>分</span>					</td>
				</tr>
				<tr>
					<td colspan="3">质检：
						<input name="c_yes" type="checkbox" id="c_yes" value="1" onclick="set_yes_or_no(1)" />
正确
<input name="c_no" type="checkbox" id="c_no" value="1"  onclick="set_yes_or_no(0)" />
错误
<input name="c_feel" type="checkbox" id="c_feel" value="1" />
用户感问题
<input name="c_over_time" type="checkbox" id="c_over_time" value="1" />
是否超时</td>
				</tr>
				<tr>
					<td colspan="3">评价：<br />
						<textarea name="reply_content" id="reply_content" cols="45" rows="5"></textarea>
					</td>
				</tr>
				<tr>
					<td colspan="3">
						<input type="submit" name="gm_reply" id="gm_reply" value="质检提交" />
					</td>
				</tr>
				
{{else}}
<tr>
					<td colspan="3">
						<font color="red">等待质检..</font>
					</td>
				</tr>

{{/if}}		
{{/if}}	



{{if $ques_info->ques_info.solution_flag eq 1 }}
{{if $ques_info->ques_info.back_check eq 1 }}
				<tr>
					<td colspan="3" style="color:#666666">质检结果：
						<hr size="1" noshade="noshade" />
						<input type="checkbox" disabled="disabled" value="1" {{if $ques_info->ques_info.use_flag eq 1}} checked="checked" {{/if}} />
是否确认（采纳） 
<input type="checkbox" value="1"  disabled="disabled" {{if $ques_info->ques_info.edit_RP ne 0}} checked="checked" {{/if}}  /> 调整RP值 
{{if $ques_info->ques_info.edit_RP > 0 }}
+{{$ques_info->ques_info.edit_RP}}分
{{/if}}
{{if $ques_info->ques_info.edit_RP < 0 }}
-{{$ques_info->ques_info.edit_RP}}分
{{/if}}
<br />
<input type="checkbox" value="1" onclick="set_yes_or_no(1)" disabled="disabled" {{if $ques_info->ques_info.check_yes_or_no eq 1}} checked="checked" {{/if}}   />
正确
<input type="checkbox" value="1"  onclick="set_yes_or_no(0)" disabled="disabled"  {{if $ques_info->ques_info.check_yes_or_no eq 0}} checked="checked" {{/if}}  />
错误
<input type="checkbox" value="1" disabled="disabled"  {{if $ques_info->ques_info.back_feel eq 1}} checked="checked" {{/if}}  />
用户感问题
<input type="checkbox" value="1" disabled="disabled"  {{if $ques_info->ques_info.back_overtime eq 1}} checked="checked" {{/if}}  />
是否超时<br />
评价：<br />
{{if $ques_info->ques_info.comment ne ''}}
{{$ques_info->ques_info.comment}}
{{else}}
没有评价!
{{/if}}
<br />
					</td>
				</tr>		
{{/if}}
{{/if}}

			</table>			
			</form>

<script type="text/javascript">
try{
content=document.getElementById('reply_content').value;
}catch(e){}
{{if $ques_info->ques_info.gm_back ne '' }}
reply_form('none');
{{/if}}

function test() {
var obj;

if(obj=document.getElementById('spic_1')) {
	spic_w_1=obj.width;
	spic_h_1=obj.height;
	obj.width=110;
	obj.height=90;
}
if(obj=document.getElementById('spic_2')) {
	spic_w_2=obj.width;
	spic_h_2=obj.height;
	obj.width=110;
	obj.height=90;
}
if(obj=document.getElementById('spic_3')) {
	spic_w_3=obj.width;
	spic_h_3=obj.height;
	obj.width=110;
	obj.height=90;
}
}
</script>

		<!--<input type="button" name="button" id="button" value="返回到列表页" onclick="window.location='{{$cs_return_url}}'" />-->
		<input type="button" name="button" id="button" value="返回到列表页" onclick="history.back()" />
		</td>
	</tr>
</table>
<p>&nbsp;</p>
</body>
</html>
